

`include "defines.v"

//----------------------------------------------------------------
//Module Name : adven_ctrl.v
//Description of module:
// 
//----------------------------------------------------------------
//Designer:	Tang Pengyu
//Date: 2021/09/29/16:28	  
//----------------------------------------------------------------
module	adven_ctrl(
	input	id_load_axi_en,
	input	exe_load_axi_en,
	input	pc_sel,
	
	output	ifid_ena,
	output	ifid_rst,
//	output	exmem_ena,
//	output	exmem_rst,
	output	if_addr_ctrl

);

assign	if_addr_ctrl = (id_load_axi_en | exe_load_axi_en) ? 1'b0 : 1'b1;
assign	ifid_rst = (id_load_axi_en | exe_load_axi_en) ? 1'b1 : 
					(pc_sel ? 1'b1 : 1'b0);
assign	ifid_ena = 1'b1;

endmodule